package com.sicau.smarttraceplatform.entity.param.collectingdata.baseparam;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 采集数据
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2020-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CollectingDataBaseParam implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 溯源id
     */
    @Size(max = 32, message = "溯源id长度最大只能为{max}")
    @NotBlank(message = "溯源id不能为空")
    @ApiModelProperty("溯源id")
    private String traceId;

    /**
     * 采集日期
     */
    @ApiModelProperty("采集日期")
    private LocalDateTime collectionTime;

    /**
     * 光照  lux
     */
    @Size(max = 10, message = "光照长度最大只能为{max}")
    @NotBlank(message = "光照不能为空")
    @ApiModelProperty("光照  lux")
    private String illumination;

    /**
     * 温度  ℃
     */
    @Size(max = 10, message = "温度长度最大只能为{max}")
    @NotBlank(message = "温度不能为空")
    @ApiModelProperty("温度  ℃")
    private String temperature;

    /**
     * 湿度  %
     */
    @Size(max = 10, message = "湿度长度最大只能为{max}")
    @NotBlank(message = "湿度不能为空")
    @ApiModelProperty("湿度  %")
    private String humidity;

    /**
     * 风速 m/s
     */
    @Size(max = 10, message = "风速长度最大只能为{max}")
    @NotBlank(message = "风速不能为空")
    @ApiModelProperty("风速 m/s")
    private String windSpeed;

    /**
     * 大气压  hpa
     */
    @Size(max = 10, message = "大气压长度最大只能为{max}")
    @NotBlank(message = "大气压不能为空")
    @ApiModelProperty("大气压  hpa")
    private String atmosphere;

    /**
     * 雨量 mm/h
     */
    @Size(max = 10, message = "雨量长度最大只能为{max}")
    @NotBlank(message = "雨量不能为空")
    @ApiModelProperty("雨量 mm/h")
    private String rainfall;


}
